<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.cms.*" %>

<%@ include file="../init_include.jsp" %>

<%
	int check_rst=Permission.accept(dbi,session,request,"sysop","tree","catid","000000001"); 	
	if (check_rst!=Permission.CHECK_RST_SUCCESS) {
		dbi.closeAll();
		if (check_rst==Permission.CHECK_RST_DENY)
			response.sendRedirect("../deny.html");
		else
			response.sendRedirect("../index.jsp");
		return;		
	}
	int status=0;
	if(request.getParameter("status")!=null)
	{
		status=Integer.parseInt(request.getParameter("status"));
		if(request.getParameter("id")!=null)
		{
			String iditem=request.getParameter("id").trim();
			iditem=iditem.substring(0,iditem.length()-1);
			Archive.checkArchives(dbi,iditem,status);
		}
	}
%>
	<%=Language.getNameByCode("cms.checksuccessful","Check Archive Successfully!")%>
<script Language="JavaScript" src="../script/Ion_Show.js"></script> 
<script language="javascript">
	closewindow(0);
</script>	
<%@ include file="../init_free.jsp" %>
